var path = require('path')
var node_modules_path = path.resolve(__dirname, 'node_modules')

module.exports = {
    resolve: {
        //When require, do not have to add these extensions to file's name
        extensions: ["", ".js", ".jsx"]
        //node_modules: ["web_modules", "node_modules"]  (Default Settings)
    },
    entry: {
        ac1: path.resolve(__dirname, 'test/autocomplete/ac01.jsx')
    },
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: '[name].js'
    },
    module: {
        loaders: [{
            test: /\.(js|jsx)$/,
            loader: 'babel-loader?optional=runtime&stage=0',
            exclude: [node_modules_path]/*,
            query: {
                presets: ['react', 'es2015']
            }*/
        }]
    }
}